package org.misty.seckill.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.misty.seckill.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {
  @Select("select * from user where id = #{id}")
  User getById(long id);

  int insertUser(User user);

  List<User> listUsers();
}
